﻿using UnityEngine;
using System.Collections;

public class LuaScriptManager : MonoBehaviour {

    public LuaScriptMgr scriptMgr;
    // Use this for initialization
    void Start () {
        scriptMgr = new LuaScriptMgr();
        scriptMgr.Start();
        scriptMgr.DoFile("Project.Init");
        scriptMgr.CallLuaFunction("main");
    }
	
	// Update is called once per frame
	void Update () {
	
	}
    void OnDestroy()
    {
        scriptMgr.Destroy();
    }
}
